diff options
Diffstat (limited to 'pages/profile/[user].js')
| -rw-r--r-- | pages/profile/[user].js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pages/profile/[user].js b/pages/profile/[user].js index b40c41a..3cff4bd 100644 --- a/pages/profile/[user].js +++ b/pages/profile/[user].js @@ -1,5 +1,3 @@ -const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"; - import { getServerSession } from "next-auth"; import { authOptions } from "../api/auth/[...nextauth]"; import Navbar from "../../components/navbar"; @@ -301,7 +299,7 @@ export async function getServerSideProps(context) { const session = await getServerSession(context.req, context.res, authOptions); const query = context.query; - const res = await fetch(`${baseUrl}/api/get-media`, { + const res = await fetch(`/api/get-media`, { method: "POST", body: JSON.stringify({ username: query.user, |